package cn.stu.lqj.demo.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.stereotype.Component;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
//使用Mybatis-plus 实体类与哪个表对应
@TableName("tb_emp")
@Accessors(chain = true)
public class Emp implements Serializable {
    @TableId(type = IdType.AUTO)
    private int id;
    private String name;
    @TableField("card_id")
    private String cardId;
    private int age;
    private double salary;
    @TableField("emp_id")
    private int empId;
    @TableField("isdelete")
    private String isdelete;
}
